package com.ls.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ls.controller.booking.model.*;
import com.ls.entity.Booking;
import com.ls.utils.ResultData;

import java.util.List;

/**
 * <p>
 * 预定服务类
 * </p>
 *
 * @author pengyu
 * @since 2024-06-28
 */
public interface IBookingService extends IService<Booking> {
    /**预定列表*/
    ResultData pageList(QueryBookingModel model);
    /**新增预定*/
    ResultData add(AddBookingModel model);
    /**新增跟进记录*/
    ResultData addBookNote(AddBooknoteModel model);
    /**编辑预定*/
    ResultData edit(EditBookingModel model);
    /**修改预定状态*/
    ResultData updateStatus( BookingStatusModel model);
    /**预定信息*/
    ResultData getBooking(GetBookingModel model);
    /**最近通话记录*/
    ResultData getRecentPhoneRecord();
    /**近期联系记录 获取所有联系人及预定记录*/
    ResultData getAllLinkman(List<PhoneRecordModel> phoneList);
    /**获取当天预定的情况*/
    ResultData getTodayBooking(BookingModel model);
    /**根据id查询*/
    ResultData getBookingById(Long bookingId);
    /**发送预定短信*/
    ResultData sendSms(Long bookingId);
    /**根据id获取预定及联系人信息*/
    ResultData getBookingAndLinkman(Long bookingId);
    String getContent(Booking booking);
}
